package com.liuzhilong.infrastructure.framework.spring.component;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class FactoryBeanProduceFactory implements FactoryBean<FactoryBeanProduce> {

    @Override
    public FactoryBeanProduce getObject() throws Exception {
        return new FactoryBeanProduce();
    }

    @Override
    public Class<?> getObjectType() {
        return FactoryBeanProduce.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
